home *** CD-ROM | disk | FTP | other *** search
/ Dr. Windows 3 / dr win3.zip / dr win3 / PROGRAMR / ATBSB002.ZIP / DEMOTOOL.RC < prev    next >
Text File  |  1993-12-16  |  3KB  |  121 lines

  1.  
  2. /*
  3.     TOOLDEMO.RC -- resource script file defining Tool Bar
  4.     control. This is a part of TOOLDEMO project - demonstration
  5.         of ESTOOLS.DLL
  6.     Copyright (C) Eugene Sokolov 1992-1993, (516)632-7892,
  7.     esokolov@sbchm1.chem.sunysb.edu
  8.  
  9.     You can freely copy, change or redistribute this file as long
  10.     as this notice remains intact.
  11.  
  12.     Last edition 10/30/93 (mm/dd/yy)
  13. */
  14.  
  15.  
  16. #include "esdefs.h"
  17.  
  18. /* Bitmaps placed on top of TB buttons */ 
  19. BMP1 BITMAP "bmp1.bmp"
  20. BMP2 BITMAP "bmp2.bmp"
  21. BMP3 BITMAP "bmp3.bmp"
  22. BMP4 BITMAP "bmp4.bmp"
  23. BMP5 BITMAP "bmp5.bmp"
  24.  
  25. /* Application icon */
  26. TBICON ICON "tbdemo.ico"
  27.  
  28. /*Tool Bar window caption */
  29. STRINGTABLE
  30. BEGIN
  31.     NAME1, "ES ToolBar"
  32. END
  33.  
  34. /* Script for the Tool Bar itself */
  35. TOOLBAR RCDATA
  36. BEGIN
  37.    TB_RESOURCE_VERSION,         /* Resource version, new to 1.01 !!! ,
  38.                       old resources will not work !!! */
  39.    NAME1,               /* Tool Bar name */
  40.    TBS_CHILD | TBS_MOVABLE | TBS_BORDER | TBS_VISIBLE,  /* Tool Bar style */
  41.             /* ^^^^^^^^^^^ -- default, included for reference only */
  42.    40, 32,            /* button size width, height */
  43.    3,                /* border size -- ignored if no
  44.                       TBS_BORDER style specified*/
  45.    5,                 /* # of buttons in the horizontal line */
  46.    5,                 /* total # of controls */
  47.    BMP1, ID_CMD1, TBB_DISABLED,    /* controls (buttons) in the form:
  48.                     Bitmap ID, Button ID
  49.                     (wParam in WM_COMMAND message),
  50.                     Button style (see description of styles
  51.                                         in estools.h
  52.                    */
  53.    BMP2, ID_CMD2, TBB_AUTO2STATE | TBB_PRESSED,
  54.    BMP3, ID_CMD3, TBB_STANDARD,
  55.    BMP4, ID_CMD4, TBB_STANDARD,
  56.    BMP5, ID_CMD5, TBB_2STATE,
  57.    0                             /* not necessary, but recommended for future
  58.                    compatibility
  59.                     */
  60. END
  61.  
  62. /* Application menu */
  63. TBMENU MENU 
  64. BEGIN
  65.     POPUP "&Buttons"
  66.     BEGIN
  67.         POPUP "&1"
  68.         BEGIN
  69.             MENUITEM "&Disabled", 1100, CHECKED
  70.             MENUITEM "&Auto 2 state", 1101
  71.             MENUITEM "&2 State", 1102
  72.         END
  73.  
  74.         POPUP "&2"
  75.         BEGIN
  76.             MENUITEM "&Disabled", 1200
  77.             MENUITEM "&Auto 2 state", 1201, CHECKED
  78.             MENUITEM "&2 State", 1202
  79.         END
  80.  
  81.         POPUP "&3"
  82.         BEGIN
  83.             MENUITEM "&Disabled", 1300
  84.             MENUITEM "&Auto 2 state", 1301
  85.             MENUITEM "&2 State", 1302
  86.         END
  87.  
  88.         POPUP "&4"
  89.         BEGIN
  90.             MENUITEM "&Disabled", 1400
  91.             MENUITEM "&Auto 2 state", 1401
  92.             MENUITEM "&2 State", 1402
  93.         END
  94.  
  95.         POPUP "&5"
  96.         BEGIN
  97.             MENUITEM "&Disabled", 1500
  98.             MENUITEM "&Auto 2 state", 1501
  99.             MENUITEM "&2 State", 1502, CHECKED
  100.         END
  101.  
  102.     END
  103.  
  104.     POPUP "&Tool Bar"
  105.     BEGIN
  106.         POPUP "&Buttons Per Row"
  107.         BEGIN
  108.             MENUITEM "&1", 2001
  109.             MENUITEM "&2", 2002
  110.             MENUITEM "&3", 2003
  111.             MENUITEM "&4", 2004
  112.             MENUITEM "&5", 2005
  113.         END
  114.  
  115.         MENUITEM "&TBS_Movable (or TBS_Fixed)", 2007, CHECKED
  116.         MENUITEM "&TBS_Border", 2008, CHECKED
  117.     END
  118.  
  119. END
  120.  
  121.